package com.tracker

import grails.transaction.Transactional

class ManagerService {
static final transaction=true

	def getNodeId(nodeId) { 
		if (nodeId =~ "Tur_") {
			println("ManagerService test Tur")
			return nodeId.minus("Tur_").toLong()
		}
		else if(nodeId =~ "Hotel_"){
			println("ManagerService test Hotel")
			return nodeId.minus("Hotel_").toLong()
		}		
		else if(nodeId =~ "Times_"){
			println("ManagerService test Times")
			return nodeId.minus("Times_").toLong()			
		}
		else if(nodeId =~ "Request_"){
			println("ManagerService test Request")
			return nodeId.minus("Request_").toLong()
		}
	}
}
		

